﻿<%@ Page Title="" Language="C#" MasterPageFile="~/common.Master" AutoEventWireup="true" CodeBehind="frmUserl.aspx.cs" Inherits="WebApp3.frmUserl1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource1" Width="641px" BackColor="#CCCCCC" BorderColor="#999999" BorderStyle="Solid" BorderWidth="3px" CellSpacing="2" ForeColor="Black" Height="359px" PageSize="6" style="margin-top: 0px">
        <Columns>
            <asp:TemplateField HeaderText="留言主题">
                <ItemTemplate>
                    <asp:Image ID="Image9" runat="server" ImageUrl="~/face/27.gif" />
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("id", "frmUserneirong.aspx?id={0}") %>' Text='<%# Eval("lyzhuti", "{0}") %>'></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="name" HeaderText="留言者" SortExpression="Name" />
            <asp:BoundField DataField="lytime" HeaderText="留言时间" SortExpression="lytime" />
            <asp:BoundField DataField="lyip" HeaderText="留言者ip" SortExpression="lyip" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" />
        <HeaderStyle BackColor="Black" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#CCCCCC" ForeColor="Black" HorizontalAlign="Left" />
        <RowStyle BackColor="White" />
        <SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#808080" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#383838" />
    </asp:GridView>
    <br />
    <asp:Label ID="Label1" runat="server" ForeColor="Red" Text="点击对应的留言主题可查看相应的内容和进行回复"></asp:Label>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:dhd2014112111ConnectionString %>" SelectCommand="SELECT DISTINCT * FROM [LyTable]"></asp:SqlDataSource>
</asp:Content>
